package myschool.object.homework;

public class Teacher {
    String name;
    String profession;
    String course;
    int age;
    public void information(){
        System.out.println("显示个人信息\n"+"姓名\t"+"专业\t"+"教授的课程\t"+"教龄\n"+name+"\t"+profession+"\t"+course+"\t"+age);
    }
}
